#include "stdafx.h"
#include <string>

#pragma once;

using namespace std;

class SinhVien
{
private:
	string _mssv;
	string _name;
	double _diemTrungBinh;
public:
	SinhVien()
	{
		_mssv = "";
		_name = "";
		_diemTrungBinh = 0;
	}
	
	SinhVien& operator=(const SinhVien& sv)
	{
		_mssv = sv._mssv;
		_name = sv._name;
		_diemTrungBinh = sv._diemTrungBinh;

		return *this;
	}
	bool operator<(const SinhVien& sv)
	{
		if(_diemTrungBinh < sv._diemTrungBinh)
			return true;
		return false;
	}

	bool operator>(const SinhVien& sv)
	{
		if(_diemTrungBinh > sv._diemTrungBinh)
			return true;
		return false;
	}

	bool operator<=(const SinhVien& sv)
	{
		if(_diemTrungBinh <= sv._diemTrungBinh)
			return true;
		return false;
	}

	bool operator>=(const SinhVien& sv)
	{
		if(_diemTrungBinh >= sv._diemTrungBinh)
			return true;
		return false;
	}



	//getter setter
	string getMSSV()
	{
		return _mssv;
	}
	void setMSSV(string mssv)
	{
		this->_mssv = mssv;
	}
	string getName()
	{
		return _name;
	}
	void setName(string name)
	{
		this->_name = name;
	}
	double getDiemTrungBinh()
	{
		return _diemTrungBinh;
	}
	void setDiemTrungBinh(double diemTrungBinh)
	{
		this->_diemTrungBinh = diemTrungBinh;
	}
};